package com.kuaidao.sys.mapper.user;

import com.kuaidao.common.entity.IdsEntity;
import com.kuaidao.sys.dto.dictionary.DictionaryAddUpdateDTO;
import com.kuaidao.sys.dto.dictionary.DictionaryReqDTO;
import com.kuaidao.sys.dto.dictionary.DictionaryResDTO;
import com.kuaidao.sys.entity.user.Dictionary;

import java.util.List;

import java.util.Map;

import com.kuaidao.common.mapper.IBaseCRUD;
import org.apache.ibatis.annotations.Param;


/**
 *
 * @Author 91228
 * @since 1.0.0
 */
public interface DictionaryMapper  extends IBaseCRUD<Dictionary, Long> {

	
/**
  	 * 新增
 	 * @param:dictionary


	 */
	@Override 
	boolean insert(Dictionary entity);

	
/**
  	 * 更新
 	 * @param:dictionary


	 */
	@Override
	boolean update(Dictionary entity);

	
/**
  	 * 删除（根据主键ID删除
 	 * @param:PrimaryKey


	 */
	@Override 
	boolean deleteByPrimaryKey(Long primaryKey);

	
/**
  	 * 批量删除
 	 * @param:keys


	 */
	@Override 
	 boolean deleteBatchByPrimaryKeyList(@Param("id") List<Long> keys);

	
/**
 * 根据主键查询
 *
 * @param:PrimaryKey
 */
	@Override
	Dictionary findByPrimaryKey(Long primaryKey);

	
/**
  	 * 按条件查询
 	 * @param:paramMap
	 */
	@Override 
	List<Dictionary> findEntityListByParams(Map<String, Object> paramMap);


	/**
	 * 分页模糊查 字典主题
	 * @param dictionaryReqDTO
	 * @return
	 */
	List<DictionaryResDTO> findDictiondryByPage(DictionaryReqDTO dictionaryReqDTO);


	/**
	 * 根据主键更新
	 */
	boolean updateDictionary(Dictionary dictionary);


	boolean deleteDictionarys(IdsEntity idsEntity);

}